import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
  path: "/",
  redirect: "/home"
}, {
  path: '/home',
  name: 'Home',
  // route level code-splitting
  // this generates a separate chunk (home.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import( /* webpackChunkName: "home" */ '../views/Home.vue')
}, {
  path: '/DataCenter',
  name: 'DataCenter',
  component: () => import('../views/DataCenter.vue')
}, {
  path: '/BasicLargeScreen',
  name: 'BasicLargeScreen',
  component: () => import('../views/BasicLargeScreen.vue')
}, {
  path: '/HiddenDataCenter',
  name: 'HiddenDataCenter',
  component: () => import('../views/HiddenDataCenter.vue')
}, {
  path: '/RiskDataCenter',
  name: 'RiskDataCenter',
  component: () => import('../views/RiskDataCenter.vue')
}]

const router = new VueRouter({
  routes
})

export default router